function SetPath(useDialog : boolean; path: Str255) : boolean;

Sets the default folder to path.  If useDialog is TRUE, path is ignored and a GetFolder dialog is displayed.  If not sucessfun then it returns FALSE.

Also see:  GetPath